/*
 * VentanaCreacionAreas.java
 *
 * Created on 21 de febrero de 2007, 03:14 PM
 */

package everest3.materialBibliografico;

import everest3.Ayuda.MostrarAyuda; 
import java.awt.Frame; 
import java.awt.event.ActionEvent; 
import java.awt.event.FocusEvent; 
import java.awt.event.MouseEvent; 
import javax.swing.JButton; 
import javax.swing.JComboBox; 
import javax.swing.JDialog; 
import javax.swing.JLabel; 
import javax.swing.JPanel; 
import javax.swing.JSeparator; 
import javax.swing.JTextField;
import everest3.utils.Fecha;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.sql.SQLException;
import java.util.Vector;

/**
 * Clase que administra la Creaci&oacute;n de &Aacute;reas Tem&aacute;ticas
 * @author JOSE LIBARDO MOLINA
 */
public class VentanaCreacionAreas extends javax.swing.JDialog {
    
    /**
     * Creates new form VentanaCreacionAreas
     * @param parent 
     * @param modal 
     */
    public VentanaCreacionAreas(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        dimensionarPantalla();       
    }
    /**
     * 
     * @param parent 
     * @param modal 
     * @param nombreUsuario 
     */
       public VentanaCreacionAreas(java.awt.Frame parent, boolean modal, String nombreUsuario) {
        super(parent, modal);
        initComponents();
         jTUsuario.setText(nombreUsuario);
        dimensionarPantalla();       
    }
    /**
     * Meotodo que centra la ventana en el monitor
     */
    	public void dimensionarPantalla()
  	{
  		Dimension pantalla, cuadro;
  		
		pantalla = Toolkit.getDefaultToolkit().getScreenSize();
		cuadro = this.getSize();				
		
		this.setLocation(((pantalla.width - cuadro.width)/2), 
						(pantalla.height - cuadro.height)/2);
	}
    
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        codigoArea = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        nombreArea = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jCBTipo = new javax.swing.JComboBox();
        botonAyuda = new javax.swing.JButton();
        botonGuardar = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jPEncabezado = new javax.swing.JPanel();
        JTFecha = new javax.swing.JTextField();
        jTUsuario = new javax.swing.JTextField();
        jLlogo = new javax.swing.JLabel();
        jLTitulo = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLEstado = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Creaci\u00f3n de \u00e1reas");
        setResizable(false);
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("C\u00f3digo de \u00e1rea"));
        jLabel1.setText("C\u00f3digo");

        codigoArea.setToolTipText("C\u00f3digo de \u00e1rea");
        codigoArea.setDocument(new everest3.utils.LimitadorCaracteres(codigoArea,5,0));
        codigoArea.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                codigoAreaMouseEntered(evt);
            }
        });
        codigoArea.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                codigoAreaActionPerformed(evt);
            }
        });
        codigoArea.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                codigoAreaFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                codigoAreaFocusLost(evt);
            }
        });

        jLabel2.setText("Nombre");

        nombreArea.setToolTipText("Nombre del \u00e1rea");
        nombreArea.setDocument(new everest3.utils.LimitadorCaracteres(nombreArea,100,2));
        nombreArea.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                nombreAreaMouseEntered(evt);
            }
        });
        nombreArea.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                nombreAreaFocusGained(evt);
            }
        });

        jLabel3.setText("Tipo");

        jCBTipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Libro", "Tesis" }));
        jCBTipo.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jCBTipoMouseEntered(evt);
            }
        });
        jCBTipo.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jCBTipoFocusGained(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jLabel2)
                    .addComponent(jLabel3))
                .addGap(14, 14, 14)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jCBTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(codigoArea, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                            .addComponent(nombreArea, javax.swing.GroupLayout.DEFAULT_SIZE, 391, Short.MAX_VALUE)
                            .addContainerGap()))))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(codigoArea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(14, 14, 14)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(nombreArea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(12, 12, 12)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(jCBTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        botonAyuda.setText("Ayuda");
        botonAyuda.setToolTipText("Visualiza la Ayuda del Sistema");
        botonAyuda.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                botonAyudaMouseEntered(evt);
            }
        });
        botonAyuda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonAyudaActionPerformed(evt);
            }
        });
        botonAyuda.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                botonAyudaFocusGained(evt);
            }
        });

        botonGuardar.setText("Guardar");
        botonGuardar.setToolTipText("Guardar \u00e1rea");
        botonGuardar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                botonGuardarMouseEntered(evt);
            }
        });
        botonGuardar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonGuardarActionPerformed(evt);
            }
        });
        botonGuardar.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                botonGuardarFocusGained(evt);
            }
        });

        jButton4.setText("Cerrar");
        jButton4.setToolTipText("Cierra esta ventana");
        jButton4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jButton4MouseEntered(evt);
            }
        });
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });
        jButton4.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jButton4FocusGained(evt);
            }
        });

        jPEncabezado.setLayout(null);

        jPEncabezado.setBackground(new java.awt.Color(204, 204, 204));
        JTFecha.setEditable(false);
        JTFecha.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        JTFecha.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        JTFecha.setDragEnabled(true);
        JTFecha.setEnabled(false);
        JTFecha.setFocusable(false);
        JTFecha.setText(FechaAct.obtenerFechaCompleta());
        jPEncabezado.add(JTFecha);
        JTFecha.setBounds(350, 10, 160, 20);

        jTUsuario.setEditable(false);
        jTUsuario.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jTUsuario.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        jTUsuario.setDragEnabled(true);
        jTUsuario.setEnabled(false);
        jPEncabezado.add(jTUsuario);
        jTUsuario.setBounds(350, 40, 160, 20);

        jLlogo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/everest3/imagenes/logo.JPG")));
        jLlogo.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        jLlogo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jPEncabezado.add(jLlogo);
        jLlogo.setBounds(0, 0, 85, 64);

        jLTitulo.setFont(new java.awt.Font("Tahoma", 1, 18));
        jLTitulo.setText("rea Tem\u00e1tica - Nuevo");
        jPEncabezado.add(jLTitulo);
        jLTitulo.setBounds(125, 40, 220, 22);

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 48));
        jLabel4.setText("\u00c1");
        jPEncabezado.add(jLabel4);
        jLabel4.setBounds(90, 10, 33, 58);

        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/everest3/imagenes/Barra.jpg")));
        jPEncabezado.add(jLabel5);
        jLabel5.setBounds(0, 0, 530, 65);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPEncabezado, javax.swing.GroupLayout.PREFERRED_SIZE, 517, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addGroup(layout.createSequentialGroup()
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(botonGuardar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(botonAyuda))
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
            .addGroup(layout.createSequentialGroup()
                .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 507, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLEstado, javax.swing.GroupLayout.PREFERRED_SIZE, 354, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(141, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPEncabezado, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botonAyuda)
                    .addComponent(jButton4)
                    .addComponent(botonGuardar))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLEstado, javax.swing.GroupLayout.DEFAULT_SIZE, 14, Short.MAX_VALUE))
        );
        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void botonAyudaFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_botonAyudaFocusGained
// TODO add your handling code here:
        barraEstado("Visualiza la Ayuda del Sistema");
    }//GEN-LAST:event_botonAyudaFocusGained

    private void botonAyudaMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonAyudaMouseEntered
// TODO add your handling code here:
        barraEstado("Visualiza la Ayuda del Sistema");
    }//GEN-LAST:event_botonAyudaMouseEntered

    private void jButton4MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton4MouseEntered
// TODO add your handling code here:
        barraEstado("Cierra esta Ventana y Vuelve al Menu Principal");
    }//GEN-LAST:event_jButton4MouseEntered

    private void jButton4FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jButton4FocusGained
// TODO add your handling code here:
         barraEstado("Cierra esta Ventana y Vuelve al Menu Principal");
    }//GEN-LAST:event_jButton4FocusGained

    private void botonGuardarFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_botonGuardarFocusGained
// TODO add your handling code here:
        barraEstado("Guarda la Nueva \u00c1rea Tematica en el Sistema");
    }//GEN-LAST:event_botonGuardarFocusGained

    private void botonGuardarMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonGuardarMouseEntered
// TODO add your handling code here:
         barraEstado("Guarda la Nueva \u00c1rea Tematica en el Sistema");
    }//GEN-LAST:event_botonGuardarMouseEntered

    private void jCBTipoFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jCBTipoFocusGained
// TODO add your handling code here:
         barraEstado("Selecciona el Tipo de \u00c1rea Tematica");
    }//GEN-LAST:event_jCBTipoFocusGained

    private void jCBTipoMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jCBTipoMouseEntered
// TODO add your handling code here:
         barraEstado("Selecciona el Tipo de \u00c1rea Tematica");
    }//GEN-LAST:event_jCBTipoMouseEntered

    private void nombreAreaMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_nombreAreaMouseEntered
// TODO add your handling code here:
        barraEstado("Digita el Nombre del \u00c1rea Tematica (Maximo 100 Caracteres)");
    }//GEN-LAST:event_nombreAreaMouseEntered

    private void nombreAreaFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_nombreAreaFocusGained
// TODO add your handling code here:
        barraEstado("Digita el Nombre del \u00c1rea Tematica (Maximo 100 Caracteres)");
    }//GEN-LAST:event_nombreAreaFocusGained

    private void codigoAreaFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_codigoAreaFocusGained
// TODO add your handling code here:
        barraEstado("Digita el Codigo del \u00c1rea Tematica (Maximo 5 Caracteres)");
    }//GEN-LAST:event_codigoAreaFocusGained

    private void codigoAreaMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_codigoAreaMouseEntered
// TODO add your handling code here:
        barraEstado("Digita el Codigo del \u00c1rea Tematica (Maximo 5 Caracteres)");
    }//GEN-LAST:event_codigoAreaMouseEntered

    private void codigoAreaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_codigoAreaActionPerformed
// TODO add your handling code here:
       eventoAreaNueva();
    }//GEN-LAST:event_codigoAreaActionPerformed

    private void codigoAreaFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_codigoAreaFocusLost
// TODO add your handling code here:
        eventoAreaNueva();
         
    }//GEN-LAST:event_codigoAreaFocusLost

    private void botonAyudaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonAyudaActionPerformed
// TODO add your handling code here:
         new MostrarAyuda();
    }//GEN-LAST:event_botonAyudaActionPerformed

    private void botonGuardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonGuardarActionPerformed
        validaDatos();
    }//GEN-LAST:event_botonGuardarActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
         this.dispose();
    }//GEN-LAST:event_jButton4ActionPerformed
    
    private void eventoAreaNueva()
    {
         if (codigoArea.getText().length()>0){
             if(!consultarAreasT(codigoArea.getText())){
               codigoArea.setText("");
               javax.swing.JOptionPane.showMessageDialog(this,"El \u00c1rea "+datosArea.elementAt(1).toString().trim()+"\nya existe en el sistema","Error",javax.swing.JOptionPane.WARNING_MESSAGE);      
               codigoArea.requestFocus();
           }
            
        }
    }
    public void validaDatos(){
     if(!validarCamposVacios()){
         if(consultarAreasT(codigoArea.getText())){
              NuevaArea newArea = new NuevaArea();
          newArea.nuevaArea(codigoArea.getText(),nombreArea.getText(),jCBTipo.getSelectedItem().toString());
            
         }
         else
             javax.swing.JOptionPane.showMessageDialog(this,"El \u00c1rea "+datosArea.elementAt(1).toString().trim()+"\nya existe en el sistema","Error",javax.swing.JOptionPane.WARNING_MESSAGE);
                
             
       //this.dispose();
         
     }
      else{
          javax.swing.JOptionPane.showMessageDialog(this,"No pueden quedar vacios","error",0);
      }
                
 }
    
     private boolean consultarAreasT(String codigoArea) {
         tablasYBasesdeDatos.JDBCAdapter dataBase = new tablasYBasesdeDatos.JDBCAdapter(
                                                "jdbc:postgresql://localhost:5432/everest",
                                                 "org.postgresql.Driver","postgres","root");
         
        datosArea=dataBase.ConsultaIndividual("SELECT " +
                                                "areacodigo, " +
                                                "areanombre, " +
                                                "areatipo  " +
                                              "FROM " +
                                                "codarea " +
                                              "WHERE " +
                                                "areacodigo="+codigoArea);
        
         try {
                dataBase.close();
            } catch (SQLException ex) {
                ex.printStackTrace();
            }
        if(datosArea.size()>0)
            return false;
        else
            return true;
       
       
    }
     
      private boolean validarCamposVacios() {
        if((codigoArea.getText().length()==0) || (nombreArea.getText().length()==0))
            return true;      
        
       else return false;
    }
      private void barraEstado(String mensaje)
      {
          jLEstado.setText(mensaje);
      }

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        
         try{
            javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
        }
        catch (Exception e){}
         
        java.awt.EventQueue.invokeLater(new Runnable() {
            
            public void run() {
                   try
                {
                    javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
                }
           catch (java.lang.Exception e )
                {}
                new VentanaCreacionAreas(new javax.swing.JFrame(), true).setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField JTFecha;
    private javax.swing.JButton botonAyuda;
    private javax.swing.JButton botonGuardar;
    private javax.swing.JTextField codigoArea;
    private javax.swing.JButton jButton4;
    private javax.swing.JComboBox jCBTipo;
    private javax.swing.JLabel jLEstado;
    private javax.swing.JLabel jLTitulo;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLlogo;
    private javax.swing.JPanel jPEncabezado;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JTextField jTUsuario;
    private javax.swing.JTextField nombreArea;
    // End of variables declaration//GEN-END:variables

    private Vector datosArea;
     Fecha FechaAct= new Fecha(); 
}
